package com.twu.biblioteca;

public class Book {
    String title;
    private boolean reserved;

    public Book(String title, boolean reserved) {
        this.title = title;
        this.reserved = reserved;
    }

    public void setReserved(boolean reserved) {
        this.reserved = reserved;
    }

    public boolean getReserved() {
        return this.reserved;
    }

    public String getStatus() {
        if (this.reserved)
            return "Reserved";
        else
            return "Available";
    }
}
